#Global Constants:
Write-Host "Loading Variable Values..."
if($AnyKey -eq 1)
{
	Write-Host "Press any key to continue ..."
	$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
}

#Your AWS ACCESS Key
$accessKey = "YOUR AWS ACCESS KEY"
#Your AWS SECRET Key
$secretKey = "YOUR AWS SECRET KEY"
#The bucket name and folder your installer files are in
$bucketpath="/bucketname/install/"
#Username of the user to run ICNET services as
$Username='ICNET USER NAME'
#Password of the user to run ICNET services as
$Password='SOME PASSWORD'
#Path to install the databases
$DBInstallPath= "d:\SQL\"
#Path to install the DB logs
$DBLogInstallPath= "d:\SQL\"
#Specify your SQL Install...0=SQL Server; 1=SQL Server w/ Slipstreamed Key (MSDN); 2=SQL Express
$SQLInstallType=1
#SA Password for SQL
$SAPass='SOME PASSWORD'
#The root directory for installer files
$DLInstallerDir="z:\install\"
#The directory for the SQL Server ISO
$SQLInstallerDir=$DLInstallerDir+"SQL\"
#The directory for the .NET installer
$NETInstallerDir=$DLInstallerDir+"NET\"
#Filename of the install zip file
$ICNETInstallerFile="Install.zip"
#A username of a local admin
$LocalUserName="SOME USER NAME"
#A password for the local admin
$LocalUserPass="SOME PASSWORD"
#Whether you want the "press any key to continue" messages to come up
$AnyKey=1

#SSL Options
#Whether you should do a SSL install or not
#1=yes
$DoSSL=0
#Name of a zip file that contains cer files of trusted CA's to install
$CACertsZip="SOME ZIP FILE OF CA CERTS"
#Filename of the pfx file for the server cert
$SSLCert="SOME PFX FILE"
#Port to run SSL on
$SSLPort=443
#Password for the pfx file
$SSLCertPW="SOME PASSWORD"

#Below is stuff you probably don't need to change
#The network service.
$NetSvc = "NETWORK SERVICE"
#Endpoint to hit to access AWS S3.
$s3endpoint = "https://s3.amazonaws.com"
#Just get the current dir
$InstallerRoot=pwd
#Path to install REST Services
$icnetIISPath="c:\inetpub\icnet\"
#Path to install backend services
$icnetIISSvcPath="c:\inetpub\icnetsvc\"
#Path to install files / tools
$icnetInstallPath="c:\ICNET\"
#Name of the REST Services Application Pool
$RESTAppPool="ICNETRest"
#Name of the backend services application pool
$ServiceAppPool="ICNETServices"
#Name of the IIS Site to host ICNET REST
$IISSite="ICNET"
#Name of the IIS site to host ICNET backend services
$IISSvcSite="ICNETSOA"
#REST port
$Port=80
#Backend port
$SvcPort=8080
#Filename of the URLRewrite Installer msi
$URLRewriteInstall="rewrite_2.0_rtw_x64.msi"

#Note: The SetupExe must point to an unpacked ISO or Express Directory's Setup.exe
#To unpack an iso file, download a tool such as 7-zip
#To unpack SQL Express run the executable with the /X flag and specify the unpack folder
#E.g. en_sql_server_2012_express_edition_with_advanced_services_with_sp1_x64.exe /X
$SQLSetupExe=$SQLInstallerDir+"setup.exe"
#This is your SQL Server License.  Not required for SQL Express
$SQLPID="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
#SQL Server ISO Filename
$SQLfilename="en_sql_server_2012_standard_edition_with_sp1_x64_dvd_1228198.iso"

#This is the path to the .NET 4.5 Full Redist Package
$NETFileName="mu_.net_fx_4_5_1_windows_vistasp2_windows_7sp1_windows_8_windows_server_2008sp2_windows_server_2008r2sp1_windows_server_2012_x86_x64_3009816.exe"
#.NET Installer full path
$NETSetupExe=$NETInstallerDir+$NETFileName